package com.ss.android.video.b;

import com.bytedance.retrofit2.Call;
import com.ss.ttvideoengine.c.HttpRequest;

public final class MediaPlayerHttpRequest extends HttpRequest {
    Call<String> mCall;

    public MediaPlayerHttpRequest() {

    }

    @Override
    public final void cancel() {
        if (this.mCall != null && !this.mCall.isCanceled()) {
            this.mCall.cancel();
        }
        this.mCall = null;
    }

    @Override
    public final void request(String url, Callback callback) {
        new MediaPlayerNetClient(this, "MediaPlayer-NetClient", url, callback).start();
    }
}

